<?php
include "../mysql/mysql.php";
    $aa = new mysql;
    $aa->link("");
    include "../myfunction.php";
    $bb= new myfunction;



$q=@$_GET["q"]; 
$qq= explode("-", $q); 
$pw= $qq[0];
$name = $qq[1];

//var_dump($pw);
//var_dump($name);


$pw =$bb->jiami($pw);
$sql = "UPDATE manage_info SET user_pw= '".$pw."' WHERE user_name='".$name."' ";
$result= $aa->excu($sql);
//var_dump($result);
if($result == 'TURE'){
	echo '密码修改成功！3s后跳转到登录页面';
	echo "<meta http-equiv=\"refresh\" content=\"3;url=loginm.php\">";
	}else{
		echo "密码修改失败,请重试！";
		}


include "../mysql/mysqlclose.php";
?>